package presenter.page;

import main.InputBean;
import main.InputMode;
import utils.OnLogListener;

public class CmdPage {

    public CmdPage(String tip, InputBean info) {
        InputMode.action(tip, info, new OnLogListener() {
            @Override
            public void log(String content) {
                CmdPage.this.log(content);
            }

            @Override
            public void taskFinish() {
                CmdPage.this.log("任务结束！！！！");
                System.exit(0);
            }
        });
    }

    private void log(String content) {
        System.out.println(content);
    }
}
